/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JPanelusuario.java
 *
 * Created on 20/06/2011, 11:25:53 AM
 */
package com.tubosmonterrey.cotizador.paneles;

import org.jdesktop.application.Action;

/**
 *
 * @author rsoberanis
 */
public class JPanelusuario extends javax.swing.JPanel {

    /** Creates new form JPanelusuario */
    public JPanelusuario() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlCliente = new javax.swing.JPanel();
        scCotizaciones = new javax.swing.JScrollPane();
        listCotizaciones = new javax.swing.JList();
        txtBusquedaCotizacion = new javax.swing.JTextField();
        btnEditarCotizacion = new javax.swing.JButton();
        lblCodigoCliente = new javax.swing.JLabel();
        lblNombre = new javax.swing.JLabel();
        lblRFC = new javax.swing.JLabel();
        txtCodigoCliente = new javax.swing.JTextField();
        txtNombre = new javax.swing.JTextField();
        txtRFC = new javax.swing.JTextField();
        lblVendedor = new javax.swing.JLabel();
        txtVendedor = new javax.swing.JTextField();
        jButton1 = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        txtBusquedaCliente = new javax.swing.JTextField();
        scClientes = new javax.swing.JScrollPane();
        listClientes = new javax.swing.JList();
        pnlTemporales = new javax.swing.JPanel();
        scCotizacionesTmp = new javax.swing.JScrollPane();
        listCotizacionesTmp = new javax.swing.JList();
        jButton2 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();
        lblBusquedaCliente = new javax.swing.JLabel();
        btnNuevaCotizacion = new javax.swing.JButton();

        setName("Usuario - jgallegos"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(com.tubosmonterrey.cotizador.CotizadorApp.class).getContext().getResourceMap(JPanelusuario.class);
        pnlCliente.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("pnlCliente.border.title"))); // NOI18N
        pnlCliente.setName("pnlCliente"); // NOI18N

        scCotizaciones.setName("scCotizaciones"); // NOI18N

        listCotizaciones.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "MID-000001 - 19/07/2011 - Javier Solorzano - $1530" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        listCotizaciones.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        listCotizaciones.setName("listCotizaciones"); // NOI18N
        scCotizaciones.setViewportView(listCotizaciones);

        txtBusquedaCotizacion.setText(resourceMap.getString("txtBusquedaCotizacion.text")); // NOI18N
        txtBusquedaCotizacion.setToolTipText(resourceMap.getString("txtBusquedaCotizacion.toolTipText")); // NOI18N
        txtBusquedaCotizacion.setName("txtBusquedaCotizacion"); // NOI18N

        javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(com.tubosmonterrey.cotizador.CotizadorApp.class).getContext().getActionMap(JPanelusuario.class, this);
        btnEditarCotizacion.setAction(actionMap.get("editarCotizacion")); // NOI18N
        btnEditarCotizacion.setIcon(resourceMap.getIcon("btnEditarCotizacion.icon")); // NOI18N
        btnEditarCotizacion.setToolTipText(resourceMap.getString("btnEditarCotizacion.toolTipText")); // NOI18N
        btnEditarCotizacion.setName("btnEditarCotizacion"); // NOI18N

        lblCodigoCliente.setLabelFor(txtCodigoCliente);
        lblCodigoCliente.setText(resourceMap.getString("lblCodigoCliente.text")); // NOI18N
        lblCodigoCliente.setName("lblCodigoCliente"); // NOI18N

        lblNombre.setText(resourceMap.getString("lblNombre.text")); // NOI18N
        lblNombre.setName("lblNombre"); // NOI18N

        lblRFC.setText(resourceMap.getString("lblRFC.text")); // NOI18N
        lblRFC.setName("lblRFC"); // NOI18N

        txtCodigoCliente.setEditable(false);
        txtCodigoCliente.setText(resourceMap.getString("txtCodigoCliente.text")); // NOI18N
        txtCodigoCliente.setName("txtCodigoCliente"); // NOI18N

        txtNombre.setEditable(false);
        txtNombre.setText(resourceMap.getString("txtNombre.text")); // NOI18N
        txtNombre.setName("txtNombre"); // NOI18N

        txtRFC.setEditable(false);
        txtRFC.setText(resourceMap.getString("txtRFC.text")); // NOI18N
        txtRFC.setName("txtRFC"); // NOI18N

        lblVendedor.setText(resourceMap.getString("lblVendedor.text")); // NOI18N
        lblVendedor.setName("lblVendedor"); // NOI18N

        txtVendedor.setEditable(false);
        txtVendedor.setText(resourceMap.getString("txtVendedor.text")); // NOI18N
        txtVendedor.setName("txtVendedor"); // NOI18N

        jButton1.setAction(actionMap.get("generarPdf")); // NOI18N
        jButton1.setName("jButton1"); // NOI18N

        jLabel1.setIcon(resourceMap.getIcon("jLabel1.icon")); // NOI18N
        jLabel1.setLabelFor(txtBusquedaCotizacion);
        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        javax.swing.GroupLayout pnlClienteLayout = new javax.swing.GroupLayout(pnlCliente);
        pnlCliente.setLayout(pnlClienteLayout);
        pnlClienteLayout.setHorizontalGroup(
            pnlClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlClienteLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlClienteLayout.createSequentialGroup()
                        .addComponent(scCotizaciones, javax.swing.GroupLayout.PREFERRED_SIZE, 437, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(pnlClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE)
                            .addComponent(btnEditarCotizacion, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE)))
                    .addGroup(pnlClienteLayout.createSequentialGroup()
                        .addGroup(pnlClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblCodigoCliente)
                            .addComponent(lblNombre)
                            .addComponent(lblRFC))
                        .addGap(31, 31, 31)
                        .addGroup(pnlClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlClienteLayout.createSequentialGroup()
                                .addGroup(pnlClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(txtCodigoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(txtRFC, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(18, 18, 18)
                                .addComponent(lblVendedor)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(txtVendedor, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(txtNombre, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 416, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(pnlClienteLayout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addGap(4, 4, 4)
                        .addComponent(txtBusquedaCotizacion, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        pnlClienteLayout.setVerticalGroup(
            pnlClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlClienteLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblCodigoCliente)
                    .addComponent(txtCodigoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblNombre)
                    .addComponent(txtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblRFC)
                    .addComponent(txtRFC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblVendedor)
                    .addComponent(txtVendedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(pnlClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(txtBusquedaCotizacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pnlClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlClienteLayout.createSequentialGroup()
                        .addComponent(btnEditarCotizacion, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(scCotizaciones, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(23, 23, 23))
        );

        txtBusquedaCliente.setText(resourceMap.getString("txtBusquedaCliente.text")); // NOI18N
        txtBusquedaCliente.setName("txtBusquedaCliente"); // NOI18N

        scClientes.setName("scClientes"); // NOI18N

        listClientes.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "C000001 - AUPA551122S17 - ALBERTO ARMANDO AGUILAR PENICHE", "C000002 - VECM730610MB3 - MAURA NOEMI VELAZQUEZ CANUL" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        listClientes.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        listClientes.setName("listClientes"); // NOI18N
        scClientes.setViewportView(listClientes);

        pnlTemporales.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("pnlTemporales.border.title"))); // NOI18N
        pnlTemporales.setName("pnlTemporales"); // NOI18N

        scCotizacionesTmp.setName("scCotizacionesTmp"); // NOI18N

        listCotizacionesTmp.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "TMP-001 - C00001" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        listCotizacionesTmp.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        listCotizacionesTmp.setName("listCotizacionesTmp"); // NOI18N
        scCotizacionesTmp.setViewportView(listCotizacionesTmp);

        jButton2.setAction(actionMap.get("recuperarTemporal")); // NOI18N
        jButton2.setText(resourceMap.getString("jButton2.text")); // NOI18N
        jButton2.setToolTipText(resourceMap.getString("jButton2.toolTipText")); // NOI18N
        jButton2.setName("jButton2"); // NOI18N

        jButton3.setAction(actionMap.get("borrarTemporal")); // NOI18N
        jButton3.setText(resourceMap.getString("jButton3.text")); // NOI18N
        jButton3.setName("jButton3"); // NOI18N

        javax.swing.GroupLayout pnlTemporalesLayout = new javax.swing.GroupLayout(pnlTemporales);
        pnlTemporales.setLayout(pnlTemporalesLayout);
        pnlTemporalesLayout.setHorizontalGroup(
            pnlTemporalesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlTemporalesLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(scCotizacionesTmp, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pnlTemporalesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pnlTemporalesLayout.setVerticalGroup(
            pnlTemporalesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlTemporalesLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlTemporalesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlTemporalesLayout.createSequentialGroup()
                        .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(scCotizacionesTmp, javax.swing.GroupLayout.DEFAULT_SIZE, 163, Short.MAX_VALUE))
                .addContainerGap())
        );

        lblBusquedaCliente.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
        lblBusquedaCliente.setIcon(resourceMap.getIcon("lblBusquedaCliente.icon")); // NOI18N
        lblBusquedaCliente.setLabelFor(txtBusquedaCliente);
        lblBusquedaCliente.setText(resourceMap.getString("lblBusquedaCliente.text")); // NOI18N
        lblBusquedaCliente.setName("lblBusquedaCliente"); // NOI18N

        btnNuevaCotizacion.setAction(actionMap.get("nuevaCotizacion")); // NOI18N
        btnNuevaCotizacion.setIcon(resourceMap.getIcon("btnNuevaCotizacion.icon")); // NOI18N
        btnNuevaCotizacion.setText(resourceMap.getString("btnNuevaCotizacion.text")); // NOI18N
        btnNuevaCotizacion.setToolTipText(resourceMap.getString("btnNuevaCotizacion.toolTipText")); // NOI18N
        btnNuevaCotizacion.setName("btnNuevaCotizacion"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(37, 37, 37)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(scClientes, javax.swing.GroupLayout.PREFERRED_SIZE, 540, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(pnlCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(btnNuevaCotizacion, javax.swing.GroupLayout.PREFERRED_SIZE, 226, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(pnlTemporales, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(lblBusquedaCliente)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtBusquedaCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 244, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(38, 38, 38)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblBusquedaCliente)
                            .addComponent(txtBusquedaCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addComponent(scClientes, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(pnlCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 408, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(65, 65, 65)
                        .addComponent(pnlTemporales, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(btnNuevaCotizacion, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap(23, Short.MAX_VALUE))
        );

        getAccessibleContext().setAccessibleName(resourceMap.getString("Form.AccessibleContext.accessibleName")); // NOI18N
        getAccessibleContext().setAccessibleDescription(resourceMap.getString("Form.AccessibleContext.accessibleDescription")); // NOI18N
    }// </editor-fold>//GEN-END:initComponents

    @Action
    public void nuevaCotizacion() {
    }

    @Action
    public void editarCotizacion() {
    }

    @Action
    public void generarPdf() {
    }

    @Action
    public void recuperarTemporal() {
    }

    @Action
    public void borrarTemporal() {
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnEditarCotizacion;
    private javax.swing.JButton btnNuevaCotizacion;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel lblBusquedaCliente;
    private javax.swing.JLabel lblCodigoCliente;
    private javax.swing.JLabel lblNombre;
    private javax.swing.JLabel lblRFC;
    private javax.swing.JLabel lblVendedor;
    private javax.swing.JList listClientes;
    private javax.swing.JList listCotizaciones;
    private javax.swing.JList listCotizacionesTmp;
    private javax.swing.JPanel pnlCliente;
    private javax.swing.JPanel pnlTemporales;
    private javax.swing.JScrollPane scClientes;
    private javax.swing.JScrollPane scCotizaciones;
    private javax.swing.JScrollPane scCotizacionesTmp;
    private javax.swing.JTextField txtBusquedaCliente;
    private javax.swing.JTextField txtBusquedaCotizacion;
    private javax.swing.JTextField txtCodigoCliente;
    private javax.swing.JTextField txtNombre;
    private javax.swing.JTextField txtRFC;
    private javax.swing.JTextField txtVendedor;
    // End of variables declaration//GEN-END:variables
}
